
<!--<div ng-controller="linelist1">-->
    <div class="bg-light lter b-b wrapper-md ng-scope">
        <h1 class="m-n font-thin h3 ng-binding">风险点列表</h1>
    </div>
   
    <div class="pull-left col-sm-12" style="background-color: #ffffff ;margin: 0px 15px;margin-top: 10px">
        <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 25%">
            风险点名称：
            <input type="text" ng-model="reuipmentmanage.name">
        </div>
        <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 225px">
            维护状态：
            <select name="" id="" style="width: 100px;height: 26px" ng-model="reuipmentmanage.maintenance_status">
                <option value="">未选择</option>
                <option value="1">已维护</option>
                <option value="0">未维护</option>              
            </select>
        </div>
        <div class=" pull-left" style="text-align:left;margin-top: 14px;  width: 225px">
            责任人：
            <select ng-model="reuipmentmanage.r_name" ng-options="color.id as color.name for color in reuipmentmanage.r_names" style="width: 100px;height: 26px"></select>
            <!--<input type="text" ng-model="reuipmentmanage.r_name">-->
        </div>           
        <div style="margin-top: 10px;margin-right: 30px;padding-right:20px;">
            <button class="btn m-b-xs w-xs btn-primary btn-rounded pull-right" ng-click="reuipmentmanage.add()" style="width:120px">添加风险点</button>
        </div>
         <div style="margin-top: 10px;margin-right: 30px;padding-right:150px;">
            <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="reuipmentmanage.search()">搜索</button>
        </div>
    </div>

    <div>
         <div class="col-sm-12 " style="border-bottom: 1px solid #eaeff0;margin-bottom: 25px">
           <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" style="display: table; width: 100%;table-layout:fixed;">
               <thrad>
                <tr >
                    <th style="width: 5%;text-align:center;vertical-align:middle;padding:0px;">序号</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;padding:0px;">风险点名称</th><!--<br>检验单位-->
                    <th style="width: 10%;text-align:center;vertical-align:middle;padding:0px;">上次检测时间<br>下次检测时间</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;padding:0px;">检验周期</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;padding:0px;">责任人<br>手机号</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;padding:0px;">初次提醒时间</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;padding:0px;">二次提醒时间</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;padding:0px;">三次提醒时间</th>
                    <th style="width: 10%;text-align:center;vertical-align:middle;padding:0px;">提前提醒天数</th>
                    <th style="width: 7%;text-align:center;vertical-align:middle;padding:0px;">维护状态</th>
                    <th style="width: 8%;text-align:center;vertical-align:middle;">操作</th>
                </tr>
                </thrad>
                <tbody> 
                <tr ng-repeat="info in a">
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{$index+1}}</td>
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.name}}</td><!--<br>{{info.inspection_unit}}-->
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.inspection_data}}<br>{{info.reinspection_data}}</td>
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.maintenance_cycle}}天</td>
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.r_name}}<br>{{info.r_mobile}}</td>
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.frist_remind}}</td>
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.second_remind}}</td>
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.third_remind}}</td>
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">30天</td>
                    <td  style="text-align:center;vertical-align:middle;padding:0px;">{{info.maintenance_status}}</td>
                    <td  style="text-align:center;vertical-align:middle; ">
                        <!--<div ng-if="info.staustt"> </div>-->
                            <div class="btn-group" dropdown="">
                                <button type="button" class="btn btn-primary btn-xs" dropdown-toggle="" ng-disabled="disabled" aria-haspopup="true" aria-expanded="false" style="width: 60px">
                                    操作 <span class="caret"></span>  
                                </button>
                                <ul class="dropdown-menu" role="menu" >
                                    <li>
                                        <a ng-click="reuipmentmanage.details(info)" >详情</a>
                                    </li>
                                    <li>
                                        <a ng-click="reuipmentmanage.status(info)" >维护</a>
                                    </li>
                                    <li>
                                        <a ng-click="reuipmentmanage.edit(info)" >修改</a>
                                    </li>
                                    <li>
                                        <a ng-click="reuipmentmanage.delete(info)" >删除</a>
                                    </li> 
                                    <li>
                                        <a ng-click="reuipmentmanage.mainRec(info)" >维护记录</a>
                                    </li>                                   
                                </ul>
                            </div>                         
                   </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>


    <div class="text-right" style="background-color: white">
    <pagination 
        total-items="totalItems" 
        ng-model="currentPage" 

        ng-change="pageChanged()"
        previous-text="上一页"
        next-text="下一页"
        first-text="首页"
        last-text="尾页"
        max-size="5"
        boundary-links="true"
        rotate="false"

        items-per-page="itemsPerPage"
        class="m-t-none m-b"></pagination>


    </div>